package cn.mesmile.thread.call;

import java.util.concurrent.Callable;

/**
 * @author zb
 * @date 2020/12/28 9:53
 * @Description
 */
public class MyCallable implements Callable<String> {

    @Override
    public String call() throws Exception {
        String value = "test";
        System.out.println("ready to work");
        Thread.sleep(1000);
        System.out.println("task done");
        return value;
    }

}
